import { createRouter, createWebHistory } from 'vue-router'
import Layout from '../components/Layout.vue'
import AIChat from '../views/AIChat.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/ai-chat',
    children: [
      {
        path: 'ai-chat',
        name: 'AIChat',
        component: AIChat
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router